<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<a href="init_book">book</a>
	<a href="init_chapter">section</a>
	<a href="bookstore">bookstore</a>
	<a href="secondary?typeid=17">二次元</a>	
	<a href="init?p1=wange&p2=123">测试</a>
	<form action="book_select" method="get">
		<input type="text" name="search_content" id="search_content"/><button>搜索</button>
	</form>
	<c:if test="${datas != null }">
		<table border="1px">
			<tr>
				<th>书籍编号</th>
				<th>类型编号</th>
				<th>书籍名称</th>
				<th>作者昵称</th>
				<th>书籍封面</th>
				<th>书籍简介</th>
				<th>人气值</th>
				<th>最新章节</th>
				<th>更新时间</th>
				<th>阅读进度</th>
				<th>总字数</th>
				<th>连载或完结</th>
				<th>修改</th>
				<th>删除</th>
			</tr>
			<c:forEach items="${datas }" var="book">
				<tr>
					<td>${book.book_id }</td>
					<td>${book.type_id }</td>
					<td>${book.book_name }</td>
					<td>${book.author_name }</td>
					<td><img alt="jpg" src="http://192.168.10.160${book.book_cover }"></td>
					<td style="width:300px">${book.book_introduction }</td>
					<td>${book.popularity }</td>
					<td>${book.latest_chapter }</td>
					<td>${book.update_time }</td>
					<td>${book.reading_progress }</td>
					<td>${book.total_word }</td>
					<td>${book.state_id }</td>
					<td><a href="book_single?book_id=${book.book_id }">修改</a></td>
					<td><a href="book_delete?book_id=${book.book_id }">删除</a></td>
				</tr>
			</c:forEach>
		</table>
	</c:if>
</body>
</html>